package com.Entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Favoriteclub entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "favoriteclub", catalog = "monitor")
public class Favoriteclub implements java.io.Serializable {

	// Fields

	private Integer favoriteClubId;
	private Integer userId;
	private Integer clubId;

	// Constructors

	/** default constructor */
	public Favoriteclub() {
	}

	/** minimal constructor */
	public Favoriteclub(Integer favoriteClubId) {
		this.favoriteClubId = favoriteClubId;
	}

	/** full constructor */
	public Favoriteclub(Integer favoriteClubId, Integer userId, Integer clubId) {
		this.favoriteClubId = favoriteClubId;
		this.userId = userId;
		this.clubId = clubId;
	}

	// Property accessors
	@Id
	@Column(name = "favoriteClubId", unique = true, nullable = false)
	public Integer getFavoriteClubId() {
		return this.favoriteClubId;
	}

	public void setFavoriteClubId(Integer favoriteClubId) {
		this.favoriteClubId = favoriteClubId;
	}

	@Column(name = "userId")
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Column(name = "clubId")
	public Integer getClubId() {
		return this.clubId;
	}

	public void setClubId(Integer clubId) {
		this.clubId = clubId;
	}

}